package model

// StockCasbinRoleModel 结构体
type StockCasbinRoleModel struct {
	Id          int        `json:"id,omitempty" gorm:"column:id;isNullable:NO;"`
	RoleName    string     `json:"roleName,omitempty" gorm:"column:role_name;comment:角色名称;isNullable:NO;size:100;"`
	Status      string     `json:"status,omitempty" gorm:"column:status;comment:状态 Y/N 正常/禁用;default:Y;isNullable:YES;size:10;"`
	Remark      string     `json:"remark,omitempty" gorm:"column:remark;comment:备注说明;isNullable:YES;size:255;"`
	CreateBy    string     `gorm:"column:create_by;comment:'创建人'" json:"createBy,omitempty"`
	CreateTime  *LocalTime `json:"createTime" gorm:"column:create_time;default:CURRENT_TIMESTAMP;isNullable:NO;"`
	LastUpdTime *LocalTime `json:"lastUpdTime" gorm:"column:last_upd_time;default:CURRENT_TIMESTAMP;isNullable:NO;"`
}

func NewStockCasbinRoleModel() *StockCasbinRoleModel {
	return &StockCasbinRoleModel{}
}

// TableName StockCasbinRole 表名
func (a *StockCasbinRoleModel) TableName() string {
	return "stock_casbin_role"
}
